﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 订单列表
    /// </summary>
        public class EM_Order
        {
            [Key]
            [DatabaseGenerated(DatabaseGeneratedOption.None)]
            /// <summary>
            /// id
            /// </summary>
            public Guid Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(25)]
            public string? UserId { get; set; }
            /// <summary>
            /// 下单日期
            /// </summary>
            public DateTime OrderDate { get; set; } = DateTime.UtcNow;
        /// <summary>
        /// 商铺名称
        /// </summary>
        [StringLength(10)]
        public string ShopNames { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
         [StringLength(15)]
        public string? Name { get; set; }
            ///
            ///商品编号
            ///
            public string? Itemcode { get; set; }
            ///
            ///价格
            ///
            public float Pric { get; set; }

        }
}
